/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.mes.dao;

import com.xy.biz.mes.domain.po.ManufactureTaskRecordPO;
import com.xy.biz.mes.domain.query.ManufactureTaskRecordQuery;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author zsp
 * @date 2022-1-6
 */
public interface ManufactureTaskRecordDao {

    /**
     * 保存多个
     *
     * @param collection
     */
    int saveAllManufactureTaskRecord(Collection<ManufactureTaskRecordPO> collection);
    int deleteManufactureTaskRecordByTaskId(Long manufacturerTaskId);
    int deleteManufactureTaskRecord(Collection<Long> collection);

    /**
     * 更新多个
     *
     * @param collection
     */
    int updateAllManufactureTaskRecord(Collection<ManufactureTaskRecordPO> collection);

    int updateManufactureTaskRecordByTaskId(ManufactureTaskRecordPO manufactureTaskRecordPO);

    /**
     * 查找多条
     *
     * @param query
     * @return
     */
    List<ManufactureTaskRecordPO> listManufactureTaskRecord(ManufactureTaskRecordQuery query);

}
